<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ include file="/pages/inc/taglibs.jsp" %>
<link rel="stylesheet" type="text/css" href="<c:url value='/styles/reset.${webConfig["csssuffix"]}'/>" media="screen, projection"/>
<link rel="stylesheet" type="text/css" href="<c:url value='/styles/layout.${webConfig["csssuffix"]}'/>" media="screen, projection"/>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/styles/skin/<%=request.getAttribute("csstheme")%>/theme.<c:out value='${webConfig["csssuffix"]}'/>"/>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/styles/skin/<%=request.getAttribute("csstheme")%>/components/jqgrid/jquery.jqgrid.<c:out value='${webConfig["csssuffix"]}'/>"/>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/styles/skin/<%=request.getAttribute("csstheme")%>/components/tree/zTreeStyle.<c:out value='${webConfig["csssuffix"]}'/>"/>

<link rel="stylesheet" type="text/css" href="<c:url value='/styles/login.${webConfig["csssuffix"]}'/>" media="screen, projection"/>
<html>
<head>
	<title>登录</title>
</head>
<body>
<%@ include file="/pages/inc/common.jsp" %>
<div class="container-fluid">
<div class="right">
				<div id="log-form" class="rightmid">
					<div class="log-input-container">
						<div class="clear" style="font-size:0px;"></div>
						<div class="log-line log-line-hover">
							<div class="log-txt log-txt-hover">用户帐号：&nbsp;&nbsp;
							<input id="log-cacct" type="text" maxlength="20" class="log-input input2 input1" width="150px">
							</div>
							<div class="logIco logIcoCacct">&nbsp;</div>
						</div>
						<div class="log-line">
							<div id="passwordLabel" class="log-txt">用户密码：&nbsp;&nbsp;
							<input id="log-pwd" type="password" maxlength="20" class="log-input input2" width="150px">
							</div>
						</div>
					</div>
						<div class="goin1"><a href="javascript:;" onclick="openPassword();">&nbsp;&nbsp;&nbsp;&nbsp;忘记密码？</a></div>
					</div>
					<div id="error" class="worn"></div>
					<div class="btns">
						<div id="login-button" class="loginBtn">登&nbsp;&nbsp;录</div>
						<div id="reg-button" class="regBtn">注&nbsp;&nbsp;册</div>
						<div class="clear"></div>
					</div>
				</div>
				<div class="rightbot"></div>
			</div>
<div class="footer">
	<span></span>
</div>
<script type="text/javascript" src="js/lib/biz.jquery.js"></script>
<script type="text/javascript" src="js/i18n/i18n_zh.js"></script>
<script type="text/javascript" src="js/lib/biz.js"></script>
<%@ include file="/pages/inc/footer.jsp" %>
<script type="text/javascript">

$(function(){
         //登录异步请求	
		$("#login-button").click(function(){
			//用户名
			var username = $("#log-cacct").attr("value");
			//用户密码
			var password = $("#log-pwd").attr("value");
			$.ajax({
				url: "login/post",
				type:"POST",
				data:{"username":username,"password":password},
				cache:false,
				async:false,
				success: function(data, textStatus, jqXHR){
                   	if(data[0]){
						window.location.href="home"; 
                   	}else{
                       	alert("用户名或密码错误！")
                    };
				},
			});
		});
});


</script>
</body>
</html>
